import axios from '@/utils/axios'

const alipayAuthorizeListApi = '/alipay/lite/servicer/authList' // 阿里授权列表
const alipayAuthorizeQrcodeApi = '/alipay/lite/servicer/auth' // 阿里授权二维码

/**
 * @desc 阿里授权列表
 */
export const alipayAuthorizeList = ({ data }) => {
  return axios({
    url: alipayAuthorizeListApi,
    method: 'post',
    data: data
  })
}

/**
 * @desc 阿里授权二维码
 */
export const alipayAuthorizeQrcode = ({ data }) => {
  return axios.post(alipayAuthorizeQrcodeApi, data)
}
